
package com.scalar.chiptrack.adaptor;

public final class AssemblyLot {
    
	private String m_vendorName = null;
    
	private String m_deviceName = null;
	private String m_lotNumber = null;
	private String m_leadCount = null;
	private String m_packageType = null;
	private String m_packageSize = null;
    
	private String m_diceDiscreIn = null;
	private String m_diceDiscreOut = null;
	private String m_diceDiscreYield = null;
    
	private String m_diceInspectIn = null;
	private String m_diceInspectOut = null;
	private String m_diceInspectYield = null;
    
	private String m_preMoldIn = null;
	private String m_preMoldOut = null;
	private String m_preMoldYield = null;
    
	private String m_icFinishedIn = null;
	private String m_icFinishedOut = null;
	private String m_icFinishedYield = null;
    
	private String m_invYield = null;
	private String m_actYield = null;
	private String m_asyYield = null;
    
	private String m_dateIn = null;
	private String m_qtyIn = null;
	private String m_dateOut = null;
	private String m_qtyOut = null;
	private String m_vendorLotNumber = null;
	private String m_poNumber = null;
	private String m_expectedDateOut = null;

	private String m_stage = null;
	private String m_holdCode   = null;
	private String m_holdReason = null;
	private String m_dateCode = null;
	private String m_comments = null;
	private boolean m_hold;
	private String m_partialshipQtyIn = null;
	private String m_partialshipQtyOut = null;
	private String partialShipDateOut = null;

    private String loadDate         = null;
    private String revisedDateOut   = null;
    private String actualQty        = null;
    private String status           = null;
    private String processType      = null;
    private String category         = null;
    private String fabLotNumber     = null;
    private String waferIds         = null;

    public AssemblyLot()
    {

    }

    public AssemblyLot(String vendorName) {
		m_vendorName = vendorName;
	}
    public AssemblyLot(String vendorName, String psType) {
		m_vendorName = vendorName;
        processType  = psType;
    }
	public AssemblyLot(String vendorName, String waferLotNumber, String partNumber, String qty, String stage )
	{
		m_vendorName = vendorName;
		m_lotNumber = waferLotNumber;
		m_deviceName = partNumber;
		m_qtyIn = qty;
		m_stage = stage;
   }

	public String getVendorName() {
		return m_vendorName;
	}

	public String getStage()
	{
		return m_stage;
	}

	public void setStage(String stage)
	{
		m_stage = stage;
	}

	public void setVendorName (String vendorName) {
		m_vendorName = vendorName;
	}

	public String getDeviceName() {
		return m_deviceName;
	}
	public void setDeviceName (String deviceName) {
		m_deviceName = deviceName;
	}
    
	public String getLotNumber() {
		return m_lotNumber;
	}
	public void setLotNumber (String lotNumber) {
		m_lotNumber = lotNumber;
	}
    
	public String getLeadCount() {
		return m_leadCount;
	}
	public void setLeadCount (String leadCount) {
		m_leadCount = leadCount;
	}
    
	public String getPackageType() {
		return m_packageType;
	}
	public void setPackageType (String packageType) {
		m_packageType = packageType;
	}
    
	public String getPackageSize() {
		return m_packageSize;
	}
	public void setPackageSize (String packageSize) {
		m_packageSize = packageSize;
	}
    
	public String getDiceDiscreIn() {
		return m_diceDiscreIn;
	}
	public void setDiceDiscreIn (String diceDiscreIn) {
		m_diceDiscreIn = diceDiscreIn;
	}
    
	public String getDiceDiscreOut() {
		return m_diceDiscreOut;
	}
	public void setDiceDiscreOut (String diceDiscreOut) {
		m_diceDiscreOut = diceDiscreOut;
	}
    
	public String getDiceDiscreYield() {
		return m_diceDiscreYield;
	}
	public void setDiceDiscreYield (String diceDiscreYield) {
		m_diceDiscreYield = diceDiscreYield;
	}
    
	public String getDiceInspectIn() {
		return m_diceInspectIn;
	}
	public void setDiceInspectIn (String diceInspectIn) {
		m_diceInspectIn = diceInspectIn;
	}
    
	public String getDiceInspectOut() {
		return m_diceInspectOut;
	}
	public void setDiceInspectOut (String diceInspectOut) {
		m_diceInspectOut = diceInspectOut;
	}
    
	public String getDiceInspectYield() {
		return m_diceInspectYield;
	}
	public void setDiceInspectYield (String diceInspectYield) {
		m_diceInspectYield = diceInspectYield;
	}
    
	public String getPreMoldIn() {
		return m_preMoldIn;
	}
	public void setPreMoldIn (String preMoldIn) {
		m_preMoldIn = preMoldIn;
	}
    
	public String getPreMoldOut() {
		return m_preMoldOut;
	}
	public void setPreMoldOut (String preMoldOut) {
		m_preMoldOut = preMoldOut;
	}
    
	public String getPreMoldYield() {
		return m_preMoldYield;
	}
	public void setPreMoldYield (String preMoldYield) {
		m_preMoldYield = preMoldYield;
	}
    
	public String getIcFinishedIn() {
		return m_icFinishedIn;
	}
	public void setIcFinishedIn (String icFinishedIn) {
		m_icFinishedIn = icFinishedIn;
	}
    
	public String getIcFinishedOut() {
		return m_icFinishedOut;
	}
	public void setIcFinishedOut (String icFinishedOut) {
		m_icFinishedOut = icFinishedOut;
	}
    
	public String getIcFinishedYield() {
		return m_icFinishedYield;
	}
	public void setIcFinishedYield (String icFinishedYield) {
		m_icFinishedYield = icFinishedYield;
	}
    
	public String getInvYield() {
		return m_invYield;
	}
	public void setInvYield (String invYield) {
		m_invYield = invYield;
	}
    
	public String getActYield() {
		return m_actYield;
	}
	public void setActYield (String actYield) {
		m_actYield = actYield;
	}
    
	public String getAsyYield() {
		return m_asyYield;
	}
	public void setAsyYield (String asyYield) {
		m_asyYield = asyYield;
	}
    
	public String getDateIn() {
		return m_dateIn;
	}
	public void setDateIn (String dateIn) {
		m_dateIn = dateIn;
	}
    
	public String getQtyIn() {
		return m_qtyIn;
	}
	public void setQtyIn (String qtyIn) {

		m_qtyIn = qtyIn;
	}
    
	public String getDateOut() {
		return m_dateOut;
	}
	public void setDateOut (String dateOut) {
		m_dateOut = dateOut;
	}
    
	public String getQtyOut() {
		return m_qtyOut;
	}
	public void setQtyOut (String qtyOut) {
		m_qtyOut = qtyOut;
	}
    
	public String getVendorLotNumber() {
		return m_vendorLotNumber;
	}
	public void setVendorLotNumber (String vendorLotNumber) {
		m_vendorLotNumber = vendorLotNumber;
	}

	public String getPONumber(){
		return m_poNumber;
	}
	public void setPONumber( String poNumber ){
		this.m_poNumber = poNumber;
	}

	public String getExpectedDateOut() {
		return m_expectedDateOut;
	}
	public void setExpectedDateOut (String expectedDateOut) {
		m_expectedDateOut = expectedDateOut;
	}

	public int getQtyInAsInt()
	{
		int qtyIn = 0;
		try {
			qtyIn = Integer.parseInt (m_qtyIn);
		}
		catch (NumberFormatException nfe) {}
		return qtyIn;
	}

	public String getHoldCode()
	{
		return m_holdCode;
	}

	public void setHoldCode( String holdCode )
	{
		this.m_holdCode = holdCode;
	}

	public String getHoldReason()
	{
		return m_holdReason;
	}

	public void setHoldReason( String holdReason )
	{
		this.m_holdReason = holdReason;
	}

	public String getDateCode()
	{
		return m_dateCode;
	}

	public void setDateCode( String dateCode )
	{
		this.m_dateCode = dateCode;
	}

	public String getComments()
	{
		return m_comments;
	}

	public void setComments ( String comments )
	{
		this.m_comments = comments;
	}
	public boolean isHold()
	{
		return m_hold;
	}

	public void setHold( boolean hold )
	{
		this.m_hold = hold;
	}

	public String getPartialshipQtyOut()
	{
		return m_partialshipQtyOut;
	}

	public void setPartialshipQtyOut( String m_partialshipQtyOut )
	{
		this.m_partialshipQtyOut = m_partialshipQtyOut;
	}

	public String getPartialshipQtyIn()
	{
		return m_partialshipQtyIn;
	}

	public void setPartialshipQtyIn( String m_partialshipQtyIn )
	{
		this.m_partialshipQtyIn = m_partialshipQtyIn;
	}

	public String toString(){
    	
		StringBuffer sb = new StringBuffer();

        sb.append("[ Vendor Name = ").append(m_vendorName).append("] ");
		sb.append("[ Device Name = "+ m_deviceName+"] ");
		sb.append("[ Lot Number = " + m_lotNumber + "] ");
        sb.append("[ Fab Lot Number = "+ fabLotNumber  +"] ");

		sb.append("[ Qty In = "+ m_qtyIn +"] ");
		sb.append("[ Qty Out = "+m_qtyOut +"] ");
        sb.append("[ Date in = "+ m_dateIn +"] ");
		sb.append("[ Date out = "+ m_dateOut +"] ");

		sb.append("[ L/C = "+m_leadCount+"] ");
		sb.append("[ PO Number = "+ m_poNumber  +"] ");
		sb.append("[ Exp. Date Out = "+ m_expectedDateOut  +"] ");

		sb.append("[ Stage = "+ m_stage +"] ");
		sb.append("[ Hold Code = "+ m_holdCode +"] ");
		sb.append("[ Hold Reason = "+ m_holdReason +"] ");
		sb.append("[ DateCode = "+ m_dateCode +"] ");
		
		return sb.toString();
	}
	/**
	 * @return
	 */
	public String getPartialShipDateOut()
	{
		return partialShipDateOut;
	}

	/**
	 * @param string
	 */
	public void setPartialShipDateOut(String string)
	{
		partialShipDateOut = string;
	}

    public String getLoadDate()
    {
        return loadDate;
    }

    public void setLoadDate( String loadDate )
    {
        this.loadDate = loadDate;
    }

    public String getRevisedDateOut()
    {
        return revisedDateOut;
    }

    public void setRevisedDateOut( String revisedDateOut )
    {
        this.revisedDateOut = revisedDateOut;
    }

    public String getActualQty()
    {
        return actualQty;
    }

    public void setActualQty( String actualQty )
    {
        this.actualQty = actualQty;
    }

    public String getStatus() {
        return status;
    }

    public void setStatus(String status) {
        this.status = status;
    }


    public String getProcessType() {
        return processType;
    }

    public void setProcessType(String processType) {
        this.processType = processType;
    }

    public String getCategory() {
        return category;
    }

    public void setCategory(String category) {
        this.category = category;
    }

    public String getFabLotNumber() {
        return fabLotNumber;
    }

    public void setFabLotNumber(String fabLotNumber) {
        this.fabLotNumber = fabLotNumber;
    }

    public String getWaferIds() {
        return waferIds;
    }

    public void setWaferIds(String waferIds) {
        this.waferIds = waferIds;
    }
}